﻿using NewsPortal.Web.Infrastructure.Modularity;
using System.Linq;
using System.Web.Mvc;

namespace NewsPortal.Web.Controllers
{
    //public interface ISayHello
    //{
    //    string SayHelloToAll();
    //}

    //public class SayHello: ISayHello
    //{
    //    public string SayHelloToAll()
    //    {
    //        return "Hellow world";
    //    }
    //}

    public class HomeController : Controller
    {
        //private ISayHello sayeHllow;
        //public HomeController(ISayHello sayer)
        //{
        //    this.sayeHllow = sayer;
        //}

        public ActionResult Index()
        {
            return View();
        }


        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}